package com.tonicgb.shared.common.enums;

/**
 * @author zhaiyujin
 * @date 2021-09-01 16:47:06
 * @说明 微信数据信息枚举
 */
public enum WechatCodeEnum {
    PROGRAM_APP_ID_NO_SETTINGS(500,"微信小程序appId未设置"),
    PROGRAM_APP_SECRET_NO_SETTINGS(500, "微信小程序secret未设置"),
    APP_ID_NO_SETTINGS(500,"微信appId未设置"),
    APP_SECRET_NO_SETTINGS(500, "微信secret未设置"),
    OPENID_NO_EXIST(500, "openId不存在,请重新授权登录"),
    GET_PHONE_ERROR(501, "手机号获取失败"),
    NET_ERROR(500,"微信平台接口异常，没任何数据返回！");


    private int code;
    private String text;
    WechatCodeEnum(int code, String text){
        this.code=code;
        this.text=text;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
